package com.varbal.icegame.service.impl;

import com.varbal.icegame.entity.Apple;
import com.varbal.icegame.mapper.AppleMapper;
import com.varbal.icegame.service.AppleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AppleServiceImpl implements AppleService {

    @Autowired
    AppleMapper appleMapper;

    @Override
    public Apple getById(int id) {
        return appleMapper.getById(id);
    }

    @Override
    public int deleteById(int id) {
        return appleMapper.deleteById(id);
    }

    @Override
    public int insertApple(Apple apple) {
        return appleMapper.insertApple(apple);
    }

    @Override
    public int updateApple(Apple apple) {
        return appleMapper.updateApple(apple);
    }
}
